package com.ershi.spring.aop.proxy.interceptor;

import com.ershi.spring.aop.proxy.common.Animal;
import com.ershi.spring.aop.proxy.common.Cat;

/**
 * @author 二十
 * @since 2021/11/1 12:16 上午
 */
public class Main {

	public static void main(String[] args) {

		JdkProxy jdkProxy = new JdkProxy(new Cat());
		jdkProxy.add(new One());
		jdkProxy.add(new Two());
		((Animal) jdkProxy.getProxy()).eat("事务");
	}
}
